package com.chx.service;


import com.chx.dto.StockOutOrderDto;
import com.chx.dto.StockOutOrderPageQueryDto;
import com.chx.result.PageResult;
import com.chx.vo.StockOutOrderVo;

/**
 * @Author cp-月入过万
 * @Date 2025/5/31
 */
public interface StockOutOrderService {
    /**
     * 新增出库单
     */
    void save(StockOutOrderDto stockOutOrderDto);
    /**
     * 修改出库单
     */
    void update(StockOutOrderDto stockOutOrderDto);
    /**
     * 审核
     */
    void updateStatus(Long id);
    /**
     * 根据id查询出库单详情
     * @param id
     * @return
     */
    StockOutOrderVo getById(Long id);
    /**
     * 分页查询出库单
     * @param stockOutOrderPageQueryDto
     * @return
     */
    PageResult page(StockOutOrderPageQueryDto stockOutOrderPageQueryDto);

    /**
     * 提交出库单
     * @param id
     */
    void commit(Long id);
}
